"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getDefaultItems = getDefaultItems;

function getDefaultItems() {
  var laneOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  var moduleOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  var isEdite = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  return [{
    type: 'INPUT',
    label: '节点名称',
    name: 'name',
    inputProps: {
      allowClear: true,
      placeholder: '请输入节点名称'
    },
    rules: [{
      required: true,
      message: '请输入节点名称'
    }]
  }, {
    label: '组件类型',
    name: 'moduleType',
    type: 'SELECT',
    inputProps: {
      placeholder: '请选择组件类型',
      options: moduleOptions,
      disabled: true
    },
    rules: [{
      required: true,
      message: '请选择组件类型'
    }]
  }, {
    label: '系统类别',
    name: 'systemType',
    type: 'SELECT',
    inputProps: {
      placeholder: '请选择系统类别',
      options: [{
        label: '内部系统',
        value: 'inner'
      }, {
        label: '外部系统',
        value: 'outer'
      }]
    },
    rules: [{
      required: true,
      message: '请选择系统类别'
    }]
  }, {
    label: '所属层级',
    name: 'preId',
    type: 'SELECT',
    inputProps: {
      placeholder: '请选择所属层级',
      options: laneOptions,
      disabled: isEdite
    },
    rules: [{
      required: true,
      message: '请选择所属层级'
    }]
  }];
}